package com.ruoyi.database.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品-套餐关联
套餐里面包含了哪些商品对象 tb_product_package_association
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
public class TbProductPackageAssociation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联id */
    private Long associationId;

    /** 套餐id */
    @Excel(name = "套餐id")
    private Long packageId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 规格id */
    @Excel(name = "规格id")
    private Long specificationId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long productNum;

    public void setAssociationId(Long associationId) 
    {
        this.associationId = associationId;
    }

    public Long getAssociationId() 
    {
        return associationId;
    }
    public void setPackageId(Long packageId) 
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setSpecificationId(Long specificationId) 
    {
        this.specificationId = specificationId;
    }

    public Long getSpecificationId() 
    {
        return specificationId;
    }
    public void setProductNum(Long productNum) 
    {
        this.productNum = productNum;
    }

    public Long getProductNum() 
    {
        return productNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("associationId", getAssociationId())
            .append("packageId", getPackageId())
            .append("productId", getProductId())
            .append("specificationId", getSpecificationId())
            .append("productNum", getProductNum())
            .append("remark", getRemark())
            .toString();
    }
}
